@@ -1,3 +1,8 @@
+Changes for 0.52 Thu Apr 28 20:56:27 2011
+============================================
+* Only use unzip from /usr/local/bin when on
+ FreeBSD which will be the Info-ZIP version
+
Changes for 0.50 Tue Apr 12 19:17:23 2011
============================================
* Resolve RT #56208 reported by Apocalypse
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Archive-Extract
-version: 0.50
+version: 0.52
abstract: Generic archive extracting mechanism
author:
- Jos Boumans <kane[at]cpan.org>
@@ -16,6 +16,7 @@ use Locale::Maketext::Simple Style => 'gettext';
### solaris has silly /bin/tar output ###
use constant ON_SOLARIS => $^O eq 'solaris' ? 1 : 0;
use constant ON_NETBSD => $^O eq 'netbsd' ? 1 : 0;
+use constant ON_FREEBSD => $^O eq 'freebsd' ? 1 : 0;
use constant FILE_EXISTS => sub { -e $_[0] ? 1 : 0 };
### VMS may require quoting upper case command options
@@ -44,7 +45,7 @@ use vars qw[$VERSION $PREFER_BIN $PROGRAMS $WARN $DEBUG
$_ALLOW_BIN $_ALLOW_PURE_PERL $_ALLOW_TAR_ITER
];
-$VERSION = '0.50';
+$VERSION = '0.52';
$PREFER_BIN = 0;
$WARN = 1;
$DEBUG = 0;
@@ -126,10 +127,10 @@ See the C<HOW IT WORKS> section further down for details.
### see what /bin/programs are available ###
$PROGRAMS = {};
for my $pgm (qw[tar unzip gzip bunzip2 uncompress unlzma unxz]) {
- if ( $pgm eq 'unzip' and ON_NETBSD ) {
+ if ( $pgm eq 'unzip' and ( ON_NETBSD or ON_FREEBSD ) ) {
local $IPC::Cmd::INSTANCES = 1;
my @possibles = can_run($pgm);
- ($PROGRAMS->{$pgm}) = grep { m!/usr/pkg/! } can_run($pgm);
+ ($PROGRAMS->{$pgm}) = grep { ON_NETBSD ? m!/usr/pkg/! : m!/usr/local! } can_run($pgm);
next;
}
$PROGRAMS->{$pgm} = can_run($pgm);